package com.kerrykidz.system.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.kerrykidz.system.dao.model.WfmAuthorizeEntity;
import com.rdp.framework.exception.RDPException;

@Repository
public interface WfmAuthorizeEntityMapper {

	/**
	 * 审批转授权 查询
	 * 
	 * @param wfmAuthorize
	 * @return
	 * @throws RDPException
	 */
	public List<WfmAuthorizeEntity> findWfmAuthorize(
			WfmAuthorizeEntity wfmAuthorize) throws RDPException;

	/**
	 * 获取委托人列表
	 * 
	 * @return
	 * @throws RDPException
	 */
	public List<WfmAuthorizeEntity> findFromUsers(@Param("fkBranId")String fkBranId) throws RDPException;

	/**
	 * 更新delFlage，取消委托
	 * 
	 * @param wfmAuthorize
	 * @throws RDPException
	 */
	public void cancelWfmAuthorize(@Param("pkAuthId") String pkAuthId,
			@Param("modiBy") String modiBy) throws RDPException;

	/**
	 * 新增新的审批转授权
	 * @param wfmAuthorize
	 * @throws RDPException
	 */
	public void insertWfmAuthorize(WfmAuthorizeEntity wfmAuthorize)
			throws RDPException;
}
